package JavaGuide.reflect;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import static java.lang.System.out;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    private String privateField;
    public String publicField;
    public static String publicStaticFiled;
    private static String privateStaticField;
    static {
        out.println("静态块:类已经初始化了");
    }
    public void publicMethod(){
        out.println("this is public Method");
    }
    private void privateMethod(){
        out.println("this is private Method");
    }
    public static void publicStaticMethod(){
        System.out.println("thid is public static Method");
    }
}


